package cn.edu.hitwh.kanlema.constant;

import cn.hutool.core.util.RandomUtil;

public class UserConstants {
    public static final int VERIFY_CODE_LEN = 4;
    public static final String USER_NICK_NAME_PREFIX = "神秘影迷";
    public static final int USER_NICK_NAME_SUFFIX_LEN = 10;
    public static final int USER_REGISTER_MAX_TRY_COUNT = 5;

    public static final String[] NO_AUTH_PATH_PATTERNS = {
            "/user/code",
            "/user/login",
            "/cinema/**",
            "/cinema-type/**",
            "/voucher/**",
            "/blog/hot",
            "/upload/**",

            "/doc.html",
            "/swagger-ui.html",
            "/v2/api-docs",
            "/webjars/**",
            "/swagger-resources/**"
    };
    public static final String AUTH_HEADER = "Authorization";
}
